//
//  ButtonViewController.m
//  Button
//

#import "ButtonViewController.h"

@implementation ButtonViewController

- (void)viewDidLoad {
    [super viewDidLoad];
	
	// rounded rect
	
	UIButton *button1 = [UIButton buttonWithType:UIButtonTypeRoundedRect];
	[button1 setFrame:CGRectMake(60, 10, 80, 35)];
	[button1 setBackgroundColor:[UIColor clearColor]];
	[self.view addSubview:button1];
	
	CGRect labelRect = CGRectMake(150, 10, 160, 30);
	UILabel *label = [[UILabel alloc] initWithFrame:labelRect];
	label.backgroundColor = [UIColor clearColor];
	label.text = @"RoundedRect";
	[self.view addSubview:label];
	[label release];
	
	// detail disclosure
	
	UIButton *button2 = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
	[button2 setFrame:CGRectMake(86, 53, 29, 29)];
	[button2 setBackgroundColor:[UIColor clearColor]];
	[self.view addSubview:button2];
	
	labelRect = CGRectMake(150, 50, 160, 30);
	label = [[UILabel alloc] initWithFrame:labelRect];
	label.backgroundColor = [UIColor clearColor];
	label.text = @"DetailDisclosure";
	[self.view addSubview:label];
	[label release];
	
	// info light
	
	UIButton *button3 = [UIButton buttonWithType:UIButtonTypeInfoLight];
	[button3 setFrame:CGRectMake(92, 99, 16, 16)];
	[button3 setBackgroundColor:[UIColor clearColor]];
	[self.view addSubview:button3];
	
	labelRect = CGRectMake(150, 90, 160, 30);
	label = [[UILabel alloc] initWithFrame:labelRect];
	label.backgroundColor = [UIColor clearColor];
	label.text = @"InfoLight";
	[self.view addSubview:label];
	[label release];
	
	// info dark
	
	UIButton *button4 = [UIButton buttonWithType:UIButtonTypeInfoDark];
	[button4 setFrame:CGRectMake(92, 139, 16, 16)];
	[button4 setBackgroundColor:[UIColor clearColor]];
	[self.view addSubview:button4];
	
	labelRect = CGRectMake(150, 130, 160, 30);
	label = [[UILabel alloc] initWithFrame:labelRect];
	label.backgroundColor = [UIColor clearColor];
	label.text = @"InfoDark";
	[self.view addSubview:label];
	[label release];
	
	// add contact
	
	UIButton *button5 = [UIButton buttonWithType:UIButtonTypeContactAdd];
	[button5 setFrame:CGRectMake(86, 173, 29, 29)];
	[button5 setBackgroundColor:[UIColor clearColor]];
	[self.view addSubview:button5];
	
	labelRect = CGRectMake(150, 170, 160, 30);
	label = [[UILabel alloc] initWithFrame:labelRect];
	label.backgroundColor = [UIColor clearColor];
	label.text = @"ContactAdd";
	[self.view addSubview:label];
	[label release];
}

- (void)dealloc {
    [super dealloc];
}

@end
